home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 9 / The PC-SIG Library on CD ROM - Ninth Edition.iso / 1601_700 / DISK1610 / DISK1610.ZIP / AINSTALL.BAT next >
DOS Batch File  |  1989-03-22  |  1KB  |  40 lines

  1. echo off
  2. if "==%1" goto PROMPT
  3. for %%f in (A:,a:,B:,b:,C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,Y:,y:) do if %1.==%%f. goto BEGIN
  4. for %%f in (I:,i:,J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:,Z:,z:) do if %1.==%%f. goto BEGIN
  5. for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:,X:,x:) do if %1.==%%f. goto BEGIN
  6. goto UNKNOWN
  7. :BEGIN
  8. if %1.==A:. goto UNKNOWN
  9. if %1.==a:. goto UNKNOWN
  10. if exist a:scr.arc goto PROCEED 
  11. echo Insert SCR Disk into drive A.
  12. pause
  13. goto BEGIN
  14. :PROCEED
  15. copy scr.bat %1 > nul
  16. %1
  17. cd\
  18. mkdir %scr
  19. cd\scr
  20. a:pkxarc -r a:scr % > nul
  21. echo SCR has been successfully installed.
  22. goto FINISH
  23. :PROMPT
  24. echo 
  25. echo Enter "AINSTALL <drive:>" to install SCR.
  26. echo Here "<drive:>" is the letter of the hard disk on
  27. echo which SCR will be placed.  For example, if
  28. echo your hard drive is drive 'C:' you would type:
  29. echo 
  30. echo           AINSTALL C:
  31. echo 
  32. echo Install cancelled.
  33. goto FINISH
  34. :UNKNOWN
  35. echo Invalid drive specified.  Install cancelled.
  36. goto PROMPT
  37. :FINISH
  38. cd\
  39.  
  40.